package cn.edu.scau.cmi.zhangxiyang.Composite;

public class ConLeaf implements ConComponent{
private String name;
	
	public ConLeaf(String name) {
		this.name = name;
	}
	
	@Override
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public void add(ConComponent c) {
		
	}
	
	@Override
	public void remove(ConComponent c) {
		
	}
	
	@Override
	public String union() {
		//System.out.println(getName());
		return getName();
	}

}
